package com.example.rightmost.service;

import com.example.rightmost.entity.Piece;
import com.example.rightmost.entity.PieceLike;
import com.example.rightmost.entity.Result;
import com.example.rightmost.entity.User;

import java.util.List;
import java.util.Map;

public interface PieceService {

    List<Piece> getPieceList(String text, String userName, String topicName);

    Result getUserNameMap();

    Result getUserAvatarMap();

    Result getTopicNameMap();

    List<Piece> getPieces();

    Result doWells(Integer pieceId, Integer num);

    Result addPiece(Piece piece);

    List<Piece> getPiecesById(Integer id);

    Result getLikeInfo(Integer creationId, Integer userId);

    Result doLike(PieceLike pieceLike);

    Result noLike(PieceLike pieceLike);

    Piece getPieceById(int pieceId);

    Map<Integer, User> getUserMap();
}
